var components = {

    //   d {
    //       id: select的id
    //       name: select的name标签
    //       filter: lay-filter的值
    //       verify: lay-verify的值
    //       isEdit: disabled / ''
    //       title: 标题
    //       city: 选中值
    //       disabled: 禁用值
    //       data:[{
    //               label
    //               value
    //           }]
    //   }
    select :"<select name=\"{{= d.name }}\" {{= d.isEdit }} lay-verify=\"{{= d.verify }}\" lay-vertype=\"tips\" lay-filter=\"{{= d.filter }}\" id=\"{{= d.id }}\">\n" +
        "        <option value=\"\">{{= d.title }}</option>\n" +
        "        {{#  layui.each(d.data, function(i, item){ }}\n" +
        "            <option value=\"{{= item.value }}\" {{= (d.city && item.value === d.city) ? 'selected' : '' }}  {{= (d.disabled && item.value === d.disabled) ? 'disabled' : '' }}>{{= item.label }}</option>\n" +
        "        {{#  }); }}\n" +
        "    </select>",

    checkbox:"<div>" +
        "        {{# if(d.title){ }}" +
        "       <label class='layui-form-label'>{{= d.title }}</label>"+
        "        {{# } }}" +
        "        {{#  layui.each(d.data, function(i, item){ }}\n" +
        "            <input type='checkbox' name='{{= d.name }}' lay-filter=\"{{= d.filter }}\" lay-verify=\"{{= d.verify }}\" lay-vertype='tips' title='{{= item.label }}' value='{{= item.value }}' {{= (d.city && item.value === d.city) ? 'checked' : '' }} " +
        "              {{= d.isEdit }} {{= (d.isEdit=='' && d.disabled && item.value === d.disabled) ? 'disabled' : '' }}>\n" +
        "        {{#  }); }}\n" +
        "</div>",
    radio:"<div>" +
        "        {{# if(d.title){ }}" +
        "       <label class='layui-form-label'>{{= d.title }}</label>"+
        "        {{# } }}" +
        "        {{#  layui.each(d.data, function(i, item){ }}\n" +
        "            <input type='radio' name='{{= d.name }}' lay-filter=\"{{= d.filter }}\" lay-verify=\"{{= d.verify }}\" lay-vertype='tips' title='{{= item.label }}' value='{{= item.value }}' {{= (d.city && item.value === d.city) ? 'checked' : '' }} " +
        "             {{= d.isEdit }}  {{= (d.isEdit=='' && d.disabled && item.value === d.disabled) ? 'disabled' : '' }}>\n" +
        "        {{#  }); }}\n" +
        "</div>"

}